/**
 * <copyright>
 * </copyright>
 *
 * 
 */
package OrchestrationLanguage.resource.ol.grammar;

/**
 * A class to represent a rules in the grammar.
 */
public class OlRule extends OrchestrationLanguage.resource.ol.grammar.OlSyntaxElement {
	
	private final org.eclipse.emf.ecore.EClass metaclass;
	
	public OlRule(org.eclipse.emf.ecore.EClass metaclass, OrchestrationLanguage.resource.ol.grammar.OlChoice choice, OrchestrationLanguage.resource.ol.grammar.OlCardinality cardinality) {
		super(cardinality, new OrchestrationLanguage.resource.ol.grammar.OlSyntaxElement[] {choice});
		this.metaclass = metaclass;
	}
	
	public org.eclipse.emf.ecore.EClass getMetaclass() {
		return metaclass;
	}
	
	public OrchestrationLanguage.resource.ol.grammar.OlChoice getDefinition() {
		return (OrchestrationLanguage.resource.ol.grammar.OlChoice) getChildren()[0];
	}
	
}

